/*
 * This file is part of Avenge <https://adblockplus.org/>,
 * Copyright (C) 2006-present eyeo GmbH
 *
 * Avenge is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 *
 * Avenge is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Avenge.  If not, see <http://www.gnu.org/licenses/>.
 */

/*
 * website-defaults includes references to fonts so we need to let it know
 * where they are located in our code
 */
$path-to-font-files: "../skin/fonts";

@import "node_modules/website-defaults/static/scss/main.scss";

*
{
  font-family: Arial, sans;
  font-size: 16px;
}

body
{
  margin: 0;
  /* Start below fixed navbar */
  padding-top: 4em;
  line-height: 1.5;
}

#content,
#blog
{
  padding-bottom: 2em;
}

a img
{
  border: none;
}

a:link,
a:visited
{
  color: #555;
}

button
{
  cursor: pointer;
}

code,
pre
{
  font-family: monospace;
}

pre
{
  overflow: auto;
  padding: 1em;
  background: #ececec;
}

.sprite
{
  display: inline-block;
  background-image: url(../img/sprite-main.png);
  background-repeat: no-repeat;
  font-size: 0px; /* fix for IE6 height bug */
}

#adblock-browser-notification
{
  text-align: center;
}

#adblock-browser-notification a
{
  font-weight: 700;
}

#adblock-browser-notification img
{
  width: 25px;
  height: 25px;
  vertical-align: bottom;
}

#adblock-browser-notification span
{
  margin-left: 1em;
  white-space: nowrap;
}

[dir="rtl"] #adblock-browser-notification span
{
  margin-right: 1em;
  margin-left: 0;
}

.toc
{
  display: inline-block;
  padding: 16px 20px;
  border: 1px solid #aaa;
  background: #fff;
}

.toc ul
{
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc ul ul
{
  padding-left: 40px;
}

.toc li
{
  margin: 4px 0;
}

#social-list ul
{
  margin: 0;
  padding: 0;
  list-style: none;
}

div.animation[started="false"]:before
{
  padding-right: 3px;
  padding-left: 0px;
  content: url(%2BIh5AAAAFVBMVEUAgAAAgAD%2F%2F%2F%2Fr9uvY7Ni%2B376h0aGeNpcsAAAAAXRSTlNtc%2BXFgwAAADVJREFUeF5dzVEKACAMAlC7QW6t%2F7r%2FIYOBEPr1GOgw2AHiduaHkwKXwBK4BYZdylrpy4K%2BP%2Fu5C1CVKVSzAAAAAElFTkSuQmCC);
}

html[dir="rtl"] div.animation[started="false"]:before
{
  padding-right: 0px;
  padding-left: 3px;
}

div.animation[started="false"]
{
  cursor: pointer;
}

div.animation[started="true"]
{
  box-sizing: initial;
  -moz-user-select: none;
}

.animation img
{
  max-width: none;
}

.alert
{
  display: block;
  margin: 15px 0;
  padding: 15px;
  border: 1px solid #a1a1a1;
  background-color: #fff;
}

[dir="ltr"] .alert
{
  border-left: 5px solid #d14841;
}

[dir="rtl"] .alert
{
  border-right: 5px solid #d14841;
}

/******************************************************************************
 * .section
 *****************************************************************************/

.section
{
  padding: 2em 0;
}

/******************************************************************************
 * .content
 *****************************************************************************/

.content h1,
.content h2,
.content h3,
.content h4,
.content h5
{
  margin: 32px 0 16px;
  margin: 2rem 0 1rem;
  font-weight: 700;
}

.content h1 { font-size: 1.8em; }

.content h2 { font-size: 1.4em; }

.content h3 { font-size: 1.3em; }

.content h4 { font-size: 1.2em; }

.content h5 { font-size: 1.1em; }

@media(min-width: 768px)
{
  .content h1 { font-size: 2.4em; }

  .content h2 { font-size: 1.6em; }
}

.content a,
.content a:visited
{
  color: #c70d2c;
}

/* Buttons
 ******************************************************************************/

.button
{
  display: inline-block;
  padding: 0.5em 2em;
  border: none;
  text-align: center;
}

.button:hover,
.button:active,
.button:focus
{
  text-decoration: none;
}

@media(max-width: 575px)
{
  .button
  {
    display: block;
    width: 100%;
  }
}

.button.primary
{
  color: #fff;
  background-color: #c70d2c;
  box-shadow: 0px 2px 5px #95989A;
}

.button.primary:hover
{
  background-color: #E00F32;
}

.button.primary:active
{
  background-color: #AD102A;
}

.button.accent,
.button.accent:visited
{
  margin-right: 2px;
  margin-left: 2px;
  color: #fff;
  background: #077CA6;
}

.button.accent:hover,
.button.accent:active,
.button.accent:focus
{
  box-shadow: inset 0 0 0 3px #005D80;
}

/*******************************************************************************
 * .fg-* utilities
 ******************************************************************************/

.fg-accent
{
  color: #077CA6;
}

/*******************************************************************************
 * #navbar
 ******************************************************************************/

#navbar
{
  position: fixed;
  z-index: 2;
  top: 0;
  width: 100%;
  min-height: 4em;
  background-color: #c70d2c;
  transition: top 0.2s ease-in-out;
}

@media(max-width: 991px)
{
  #navbar
  {
    overflow: auto;
  }
}

#navbar li
{
  list-style-type: none;
}

#navbar .container
{
  padding-right: 0;
  padding-left: 0;
}

/* #navbar #navbar-logo
 ******************************************************************************/

#navbar-logo
{
  /* padding is visible in hover background-color change */
  padding: 0em 1em;
  color: #fff;
}

#navbar-logo:hover,
#navbar-logo:active,
#navbar-logo:focus
{
  background-color: #AE0013;
  text-decoration: none;
}

#navbar-logo,
#navbar-logo > *
{
  float: left;
}

[dir="rtl"] #navbar-logo,
[dir="rtl"] #navbar-logo > *
{
  float: right;
}

#navbar-logo img
{
  height: 4em;
  margin: 0em 1em 0em 0em;
  padding: 0.5em 0em;
}

[dir="rtl"] #navbar-logo > img
{
  margin: 0em  0em 0em 1em;
}

#navbar-logo > span
{
  font-size: 1.375em;
  /* full-height: 2.91 * 1.375 = ~4em */
  line-height: 2.91em;
}

/* #navbar #navbar-menu-toggle
 ******************************************************************************/

#navbar-menu-toggle
{
  float: right;
  padding: 1em;
}

[dir="rtl"] #navbar-menu-toggle
{
  float: left;
}

/* show on mobile */
#navbar-menu-toggle,
#navbar-menu-toggle > img
{
  display: block;
}

/* hide on desktop */
@media(min-width: 992px)
{
  #navbar-menu-toggle
  {
    display: none;
  }
}

#navbar-menu-toggle > img
{
  /* plus 2em padding = 4em */
  height: 2em;
}

#navbar-menu-toggle:hover,
#navbar-menu-toggle:active,
#navbar-menu-toggle:focus
{
  background-color: #AE0013;
}

/* #navbar #navbar-menu
 ******************************************************************************/

#navbar-menu a
{
  display: block;
  color: #fff;
  text-decoration: none;
}

/* #navbar #navbar-menu #navbar-locale-menu
 ******************************************************************************/

/* caret */
#navbar-locale-selected:after
{
  display: inline-block;
  width: 0;
  height: 0;
  margin: 0em 0em 0em 0.255em;
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-left: 0.3em solid transparent;
  vertical-align: 0.255em;
  content: "";
}

[dir="rtl"] #navbar-locale-selected:after
{
  margin: 0em 0.255em 0em 0em;
}

#navbar-locale-menu
{
  display: none;
}

#navbar-locale-menu.visible
{
  display: block;
}

#navbar-locale-menu > li > a
{
  padding: 0.75em 1em;
}

#navbar-locale-menu > li > a:hover,
#navbar-locale-menu > li > a:active,
#navbar-locale-menu > li > a:focus
{
  background-color: #434343;
}

/* #navbar #navbar-menu (desktop)
 ******************************************************************************/

@media(min-width: 992px)
{
  #navbar-menu
  {
    float: right;
  }

  [dir="rtl"] #navbar-menu
  {
    float: left;
  }

  #navbar-menu > li,
  #navbar-menu > li > a
  {
    display: inline-block;
  }

  #navbar-menu > li > a
  {
    padding: 0em 1em;
    line-height: 4em;
  }

  #navbar-menu > li > a:hover,
  #navbar-menu > li > a:active,
  #navbar-menu > li > a:focus
  {
    background-color: #AE0013;
  }

  /* #navbar #navbar-menu #navbar-locale-menu
   ****************************************************************************/

  #navbar-locale-menubar
  {
    position: relative;
  }

  #navbar-locale-menu
  {
    overflow: auto;
    position: absolute;
    z-index: 9001;
    top: 100%;
    right: 0px;
    min-width: 16em;
    max-height: 20em;
    max-height: 50vh;
    background-color: #292929;
  }

  [dir="rtl"] #navbar-locale-menu
  {
    right: auto;
    left: 0px;
  }
}

/* #navbar #navbar-menu (mobile)
 ******************************************************************************/

@media(max-width: 991px)
{
  #navbar-menu
  {
    display: none;
    float: left;
    clear: both;
    overflow-y: scroll;
    width: 100%;
    max-height: 416px;
    max-height: 80vh;
    background-color: #292929;
  }

  #navbar-menu.visible
  {
    display: block;
  }

  #navbar-menu li a
  {
    padding: 0.75em 1em;
  }

  #navbar-menu li a:hover,
  #navbar-menu li a:active,
  #navbar-menu li a:focus
  {
    background-color: #434343;
  }
}

/*******************************************************************************
 * #footer
 ******************************************************************************/

#footer
{
  overflow: auto;
  padding: 2em 0em;
  color: #ececec;
  background-color: #292929;
  font-size: 0.9em;
}

/* #footer body
 ******************************************************************************/

#footer h5
{
  margin-top: 1em;
  margin-bottom: 1.5em;
}

#footer h5:after
{
  display: block;
  width: 1.25em;
  height: 0.125em;
  margin-top: 0.5em;
  background-color: #ececec;
  content: "";
}

#footer ul
{
  padding: 0em;
  list-style-type: none;
}

#footer a
{
  color: #ececec;
}

#footer a:hover,
#footer a:active,
#footer a:focus
{
  color: #fff;
  text-decoration: underline;
}

/* #footer #social-list
 ******************************************************************************/

#social-list ul
{
  /* negative margin canceled out by li margin below */
  margin: 0em -0.375em;
}

#social-list li
{
  float: left;
  margin: 0em 0.375em;
}

[dir="rtl"] #social-list li
{
  float: right;
}

#social-list img
{
  height: 2em;
}

@media(min-width: 1200px)
{
  #social-list img
  {
    height: 3em;
  }
}

/* #footer #footer-legal
 ******************************************************************************/

#footer-legal
{
  margin-top: 1em;
}

@media(min-width: 1200px)
{
  #footer-legal
  {
    margin-top: 2em;
  }
}

/* #footer #footer-legal #legal-list
 ******************************************************************************/

#legal-list li
{
  float: left;
}

[dir="rtl"] #legal-list li
{
  float: right;
}

#legal-list li:after
{
  margin: 0em 0.375em;
}

/* IE9+ only */
#legal-list li::after
{
  content: "|"
}

#legal-list li:last-of-type::after
{
  content: none;
}

/* float copyright and legal links left and right on ~desktop */
@media(min-width: 1200px)
{
  #copyright-notice
  {
    float: left;
  }

  [dir="rtl"] #copyright-notice
  {
    float: right;
  }

  #legal-list
  {
    float: right;
  }

  [dir="rtl"] #legal-list
  {
    float: left;
  }
}

/* hide all footer links except #social-list on ~mobile */
@media(max-width: 767px)
{
  #footer .column
  {
    display: none;
  }

  /* overriding display:none above */
  #footer #social-list
  {
    display: block;
  }
}

/* Video
 ****************************************************************************/

.video-parent
{
  display: block;
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 0;
  border: 1px solid #c9c9c9;
  box-shadow: 1px 1px 0 0 #dbdbdb;
}

.video-parent.has-iframe::before
{
  display: block;
  padding-top: 56.25%;
  content: "";
}

.video-parent iframe
{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-link
{
  display: block;
  position: relative;
}

.video-thumbnail
{
  width: 100%;
  opacity: 0.2;
  transition: opacity 0.8s;
}

.hide-disclaimer .video-thumbnail
{
  opacity: 1;
}

.video-disclaimer
{
  visibility: visible;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1em;
  opacity: 1;
  background-color: #fff;
  font-size: 0.9em;
  text-align: center;
  transition: opacity 0.8s;
}

.hide-disclaimer .video-disclaimer
{
  visibility: hidden;
  opacity: 0;
}

.video-play
{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  margin-top: -60px;
  margin-left: -40px;
}

.hide-disclaimer .video-play
{
  margin-top: -40px;
}
